// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

using Elastic.Transport.Products.Elasticsearch;
using System.Collections.Generic;
using System.Text.Json.Serialization;

#nullable restore
namespace Elastic.Clients.Elasticsearch.Security
{
	public sealed partial class SecurityAuthenticateResponse : ElasticsearchResponseBase
	{
		[JsonInclude]
		[JsonPropertyName("api_key")]
		public Elastic.Clients.Elasticsearch.Security.ApiKey? ApiKey { get; init; }

		[JsonInclude]
		[JsonPropertyName("authentication_realm")]
		public Elastic.Clients.Elasticsearch.Security.RealmInfo AuthenticationRealm { get; init; }

		[JsonInclude]
		[JsonPropertyName("authentication_type")]
		public string AuthenticationType { get; init; }

		[JsonInclude]
		[JsonPropertyName("email")]
		public string? Email { get; init; }

		[JsonInclude]
		[JsonPropertyName("enabled")]
		public bool Enabled { get; init; }

		[JsonInclude]
		[JsonPropertyName("full_name")]
		public string? FullName { get; init; }

		[JsonInclude]
		[JsonPropertyName("lookup_realm")]
		public Elastic.Clients.Elasticsearch.Security.RealmInfo LookupRealm { get; init; }

		[JsonInclude]
		[JsonPropertyName("metadata")]
		public Dictionary<string, object> Metadata { get; init; }

		[JsonInclude]
		[JsonPropertyName("roles")]
		public IReadOnlyCollection<string> Roles { get; init; }

		[JsonInclude]
		[JsonPropertyName("token")]
		public Elastic.Clients.Elasticsearch.Security.Token? Token { get; init; }

		[JsonInclude]
		[JsonPropertyName("username")]
		public string Username { get; init; }
	}
}